package cn.websocket.service;

import cn.websocket.pojo.User;
import cn.websocket.vo.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;

/**
 * <h3>WebSocket</h3>
 * <p></p>
 *
 * @author zxj
 * @since 2025-08-18 14:05:19
 */
public interface UserService extends IService<User> {

    //登录
    Result<Object> login(User user, HttpSession httpSession);

    //注册
    Result<Object> register(HttpServletRequest request,User user);

    //获取用户信息
    Result<User> getUser(HttpSession httpSession);
}
